package com.cman777.springc.common.bean.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author chenzhicong
 * @time 2019/10/14 21:19
 * @valueription 分页返回的响应基类
 */
@Getter
@Setter
public abstract class BasePageResponse<T> extends BaseResponse{



    /**
     * 当前页码数
     */
    @ApiModelProperty(value = "当前页码数，从1开始计数",example = "1")
    private Long pageNum;

    /**
     * 每一页的大小
     */
    @ApiModelProperty(value = "每一页的条数",example = "10")
    private Long pageSize;

    /**
     *  总条数
     */
    @ApiModelProperty(value = "记录总条数",example = "123")
    private Long total;

    /**
     * 当前页 具体的数据
     */
    @ApiModelProperty(value = "当前页的具体数据")
    private List<T> list;
}
